﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Engine.Modelo;
using Engine.Material;
using Engine.Physic;
using Engine.Behavior;
using Engine.Modelo.Animation;

namespace Engine.SceneControl.Object
{
    public class SimpleAnimatedModel : SimpleObject
    {
        private IAnimatedController controller;

        public SimpleAnimatedModel(IAnimatedController controller,IMaterial material , IPhysicObject physicObject, IModelo modelo, IBehaviors behavior) :
            base(material,physicObject,modelo,behavior)
        {
            this.controller = controller;
        }

        public override void UpdateObject(Microsoft.Xna.Framework.GameTime gt, Engine.Cameras.ICamera cam, IList<Engine.Light.ILight> luzes)
        {
            controller.Update(gt);
            base.UpdateObject(gt, cam, luzes);
            
        }

        
     
    }
}
